package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.MpacDao;
import com.oscarmovie.model.Mpac;

public class MpacServiceImpl implements MpacService{
	private MpacDao mpacDao;

	public void setMpacDao(MpacDao mpacDao) {
		this.mpacDao = mpacDao;
	}

	public MpacDao getMpacDao() {
		return mpacDao;
	}

	
	public void save(Mpac mpac) {
		mpacDao.save(mpac);
	}

	
	public Mpac load(int id) {
		Mpac mpac =  mpacDao.load(id);
		return mpac;
	}

	
	public List<Mpac> loadAll() {
		return mpacDao.loadAll();
	}

	
	public void delete(Mpac mpac) {
		mpacDao.delete(mpac);
	}
}
